 /* 
 * File:   cItem.h
 * Author: josep
 *
 * Created on 30 / desembre / 2010, 18:40
 */

#ifndef CITEM_H
#define	CITEM_H

#include "cPositionedObject.h"
#include "cPositionedVisibleObject.h"


class cItem:public cPositionedVisibleObject {
public:
    cItem();
    cItem(const cItem& orig);
    virtual ~cItem();
    virtual void Init(cTexture *texture, int PosX, int PosY, int ObjecyIndex,
                                        int value, int Width, int Height);
    void Captured();
    void SetObjectIndex(int ObjectIndex);
    int GetObjectIndex() const;
    void SetValue(int value);
    int GetValue() const;
    virtual void Draw();
    void SetTextCoord(int coorId, int Dir, float value);
    float GetTextCoord(int coorId, int Dir);
private:
    int value;
    int ObjectIndex;
    float TexCoord[2][2];
};

#endif	/* CITEM_H */

